<?php
/* @var $this TugasAkhirController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Tugas Akhirs',
);

$this->menu=array(
	array('label'=>'Create TugasAkhir', 'url'=>array('create')),
	array('label'=>'Manage TugasAkhir', 'url'=>array('admin')),
);

?>
<div id="topdownload">
    5 Top Downloaded <br />
    <?php 
        $record = Yii::app()->db->createCommand("SELECT Title FROM tugasakhir ORDER BY downloaded DESC LIMIT 0, 5")->queryAll();
        $rec = $record[0]['Title'];
        echo "1. $rec <br />";
        $rec = $record[1]['Title'];
        echo "2. $rec <br />";
        $rec = $record[2]['Title'];
        echo "3. $rec <br />";
        $rec = $record[3]['Title'];
        echo "4. $rec <br />";
        $rec = $record[4]['Title'];
        echo "5. $rec";
    ?>
</div>
<h1>Tugas Akhirs</h1>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
)); 

Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl.'/css/tugasakhir/index.css');
?>

